extends base
include input

block append resources
	script(src="assets/js/challenger.js")
	script(src="assets/js/register.js")

block content
	.mdl-grid
		.mdl-layout-spacer
		.mdl-card.mdl-shadow--2dp
			.mdl-card__title
				h2.mdl-card__title-text 注册
			.mdl-card__content
				.mdl-grid
					form#register-form(action="#" method="POST")
						+plainInput('username', '用户名', 'text')
						+plainInput('password', '密码', 'password')
						+plainInput('email', '邮箱', 'email')
						+chaptcha()
			.mdl-card__actions
				button#btn-register.mdl-button.mdl-js-button.mdl-button--colored.mdl-button--raised(type="button" onclick="register()") 注册
		.mdl-layout-spacer